package com.tjetc.mapper;

import com.tjetc.domain.Customer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer customerId);

    int insert(Customer record);


    Customer get(@Param("account") String account,@Param("password") String password);

    Customer selectByPrimaryKey(Integer customerId);

    int updateByPrimaryKey(Customer record);


    List<Customer> list();

    @Select("select * from customer where account=#{account};")
    Customer selectByAccount(String account);
}